<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>视频</title>
    <style>
      html,body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        background-color: #37393e;
      }
      #video-view {
        width: 100%;
        height: 100%;
      }
      #video {
        width: 100%;
        height: 100%;
      }
    </style>
</head>

<body>
  <div id="video-view">

  </div>
  <script src="js/echarts.min.js" charset="utf-8"></script>
  <script>
      document.addEventListener('message', function(e) {
        document.getElementById("video-view").innerHTML='<video id="video" src="'+e.data+'" controls="controls"></video>';
      });
  </script>
</body>

</html>
